import LoadableComponent from "@/utils/loadable" // 懒加载组件

const routes = [
    {
        title:"首页",
        icon:"file",
        path:"/",
        exact: true,
        component:LoadableComponent(()=>import('@/views/home'))
    },
    {
        title:"echarts",
        icon:"file",
        path:"/echarts",
        component:LoadableComponent(()=>import('@/views/echarts'))
    },
    {
        title:"antd",
        icon:"user",
        path:"/antd",
        component:LoadableComponent(()=>import('@/views/antd')),
        childern:[
        ]
    },
    {
        title:"mobx",
        icon:"book",
        path:"/mobx",
        component:LoadableComponent(()=>import('@/views/mobx')),
    },
    {
        title:"router",
        icon:"book",
        path:"/router",
        component:LoadableComponent(()=>import('@/views/router')),
    },
    {
        title:"mock",
        icon:"book",
        path:"/mock",
        component:LoadableComponent(()=>import('@/views/mock')),
        childern:[
            {
                title:"userlist",
                path:"/mock/userlist",
            },{
                title:"useradd",
                path:"/mock/useradd",
            }

        ]
    }
]

export default routes;